import { createRouter, createWebHistory } from "vue-router";
import Login from "../components/Login.vue";
import DataView from "../components/DataView.vue";
import GoodsView from "../components/GoodsView.vue";

const routes = [
    {
        path: "/",
        name: "DataView",
        component: DataView,
    },
    // {
    //     path: "/data-view",
    //     name: "DataView",
    //     component: DataView,
    // },
    {
        path: "/goods",
        name: "Goods",
        component: GoodsView
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
